package com.example.shardingjdbcdemo.dao;

import com.example.shardingjdbcdemo.pojo.ScsProduct;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ShardingMapper {
    void insertProduct(@Param("scsProduct") ScsProduct scsProduct);

    List<ScsProduct> selectProduct();

    //根据id列表查询商品
    List<ScsProduct> selectProductByIds(@Param("ids") List<Long> ids);
}
